function [result] = startBoat_old(whichBoat)

% first, assert we aren't already running the process
killBoat(whichBoat);

assert((whichBoat==1) || (whichBoat==2) || (whichBoat == 3), ...
    'Bad boat selection, needs to be 1, 2, or 3.\n');

switch whichBoat
    case 1
        boatIP = '192.168.1.101';
    case 2
        boatIP = '192.168.1.102';
    case 3
        boatIP = '192.168.1.103';
end

url = ['actuv@' boatIP];
command = ['ssh ' url ' "cd  ~/boats\ code/New\ Boats\ Code/; nohup ./exp_main > /dev/null 2>&1 &"'];
system(command);

command = ['ssh ' url ' "ps -e | grep exp_main"'];

[res, proc] = system(command);


assert(strcmp(proc, '') == 0, ...
    'Error: boat process couldn''t start.\n');

disp(['Boat ' num2str(whichBoat) ' started successfully.']);
result = 1;
end